package fire.pritise.oo.day01;

public class StudentTest03 {

	public static void main(String[] args) {
		Student[] stu = new Student[3];
		stu[0] = new Student(10);
		stu[1] = new Student(23, "zs");
		stu[2] = new Student("ls", 13, "nan", "JSDZ");
		System.out.println(stu[0].age+":"+stu[0].name);
		stu[1].name = "ls";
		stu[2].age = 20;
		for (int i = 0; i < stu.length; i++) {
			System.out.println(stu[i].name);
			stu[i].sayHi();
		}
	}

}
